package lab03.test05;

import com.sun.org.apache.xpath.internal.SourceTree;

import java.util.Scanner;

public class Box {
    Scanner scanner =new Scanner(System.in);
    double length = scanner.nextDouble() ;
    double width =scanner.nextDouble();
    double high= scanner.nextDouble();
    public void initialize(){

        this.length=length;
        this.width=width;
        this.high=high;
    }
   public double volume(){
        double volume;
        volume=length*width*high;
        return volume;
   }

    public static void main(String[] args) {
        System.out.println("输入容器的长宽高");
      Box a =new Box();
      a.volume();
        System.out.println("这个容器的体积为："+a.volume());
    }
}
